Component({
  properties: {
    data: Object,
    type: {
      type: String,
      value: 'one'
    },
    disabled: Boolean
  },
  data: {

  },
  methods: {
    onClick() {
      this.triggerEvent('click', this.data.data)
    },

    onClickScan() {
      this.triggerEvent('scan', this.data.data)
    },

    onClickEdit() {
      this.triggerEvent('edit', this.data.data)
    },

    onClickDelete() {
      this.triggerEvent('delete', this.data.data)
    }
  }
})
